package cheme.ProcessEditor.Parts.Equations;

import org.eclipse.gef.editpolicies.ComponentEditPolicy;

public class ccc_aaa_PolicyEquations extends ComponentEditPolicy
{
	/*@Override
	public Command getCommand(Request request)
	{
		if(request instanceof CreateAfterRequest)
		{
			return getAddListElementCmd((CreateAfterRequest)request);
		}

		return super.getCommand(request);
	}*/
	
/*	public Command getAddListElementCmd(CreateAfterRequest request)
	{
		Command cmd = null;
		
		Equations equations = (Equations)getHost().getModel();
		EquationList list = equations.getEquationList();
		
		if(null == list)
		{
			list = new EquationList(equations);
			list.add(new TagComponent(list));
			cmd = new AddCmd(list, ((Equations)getHost().getModel()), Equations.LIST_INDEX);
		}
		else
		{
			cmd = new AddCmd(new Equation(list), ((Equations)getHost().getModel()).getEquationList());
		}
		
		return cmd;
	}*/
}
